package system.bean;

import java.util.Collection;
import java.util.Vector;

import util.ObjectRelationMappable;
import util.ObjectRelationMappingUtil;

public class MemberRoleRelation implements ObjectRelationMappable {

	private int memberId;
	private int roleId;
	
	public final static String tableName = "memberroles";
	private final static Vector<MemberRoleRelation> orProperties = new Vector<MemberRoleRelation>();
	private static void initORProperties(MemberRoleRelation doc){
		 if (orProperties.size() > 0)return;
	        ObjectRelationMappingUtil.addORProperty(doc, "memberId" , "memberId" , orProperties);
	        ObjectRelationMappingUtil.addORProperty(doc, "roleId"   , "roleId"   , orProperties);
	}
	
	public MemberRoleRelation(){
		initORProperties(this);
	}
	
	@Override
	public Collection<MemberRoleRelation> getORProperties() {
		return orProperties;
	}

	@Override
	public String getTableName() {
		return tableName;
	}

	public int getMemberId() {
		return memberId;
	}

	public void setMemberId(int memberId) {
		this.memberId = memberId;
	}

	public int getRoleId() {
		return roleId;
	}

	public void setRoleId(int roleId) {
		this.roleId = roleId;
	}

}
